package org.hdl.anima.message;

/**
 * Callback
 * 
 * @author qiuhd
 */
public interface ResponseCallback {

    /**
     * done.
     * 
     * @param response
     */
    void done(IResponse response);

    /**
     * caught exception.
     * 
     * @param exception
     */
    void caught(Throwable exception);
    /**
     * is done
     * @return
     */
    boolean isDone();

}